package com.parkingspace.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.parkingspace.entity.Order;
import com.parkingspace.entity.OrderPlus;

import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author Gapper
 * @since 2021-05-24
 */
public interface IOrderService extends IService<Order> {

    Integer createOrder(Long parkingId, Integer time, Long uid, Long carid, Integer rent);

    List<OrderPlus> getOrder(Long uid, Integer pageNo, Integer pageSize, String address);

    Boolean buyForOrder(Long uid, Long orderid, Double price);
}
